// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLObject;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.Arrays;
// import java.util.List;

#include "MySqlShowCharacterSetStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLObject.h"
#include "../../visitor/MySqlASTVisitor.h"

void MySqlShowCharacterSetStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowCharacterSetStatement)))
  {
    acceptChild(visitor, where);
    acceptChild(visitor, pattern);
  }
  visitor->endVisit(SharedObject(MySqlShowCharacterSetStatement));
}

SQLExpr_ptr MySqlShowCharacterSetStatement::getWhere()
{
  return where;
}

void MySqlShowCharacterSetStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

SQLExpr_ptr MySqlShowCharacterSetStatement::getPattern()
{
  return pattern;
}

void MySqlShowCharacterSetStatement::setPattern(SQLExpr_ptr pattern)
{
  this->pattern = pattern;
}

// @Override
SQLObject_list_ptr MySqlShowCharacterSetStatement::getChildren()
{
  SQLObject_list_ptr tmp = std::make_shared<std::list<SQLObject_ptr>>();
  tmp->push_back(this->where);
  tmp->push_back(pattern);
  return tmp;
}
